<?
class Control_Box_Productlist extends QUI_Control_Abstract{
	
	function render(){
		$content = '';

		foreach($this->products as $p){
			$content .= '
<div class="productbox">
	<div  class="imgWrapper2">
		<a class="imgWrapper1" target="_blank" href="'.url('product/detail', array('pid' => $p->id())).'">
			<img alt="'.$p->name.'" src="'.$p->img(175).'" />
		</a>
	</div>
	<a target="_blank" title="'.$p['name'].'" href="'.url('product/detail', array('pid' => $p->id())).'">'.Helper_String::limit($p['name']).'</a>
</div>';
		}

		return Q::control('box', $this->id(), array('header'=> $this->header, 'content'=> $content));
		
	}
	
	
}